package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingMapper {

    OrderSetting findOrderSettingByDate(Date orderDate);

    void save(OrderSetting orderSetting);

    void updateNumber(OrderSetting orderSetting);

    List<OrderSetting> findOrderSettingByMonth(@Param("start") String start,
                                               @Param("end") String end);

    OrderSetting findOrderSettingByDateStr(String orderDate);

    void updateReservations(Integer id);
}
